package com.zifan.sever.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zifan.sever.bean.Department;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zifan
 * @since 2021-04-10
 */
public interface DepartmentMapper extends BaseMapper<Department> {

    List<Department> getAllDepartment(Integer parentId);

    /**
     * 添加部门（调用了存储过程）
     * @return
     */
    void addDepartment(Department department);

    void deleteDepartment(Department dep);
}
